part of '../repository.dart';

class _DarkThemePrimaryColorDto extends Equatable {
  const _DarkThemePrimaryColorDto._internal({
    required this.colorValue,
  });

  final int colorValue;

  @override
  List<Object?> get props {
    return [
      colorValue,
    ];
  }

  factory _DarkThemePrimaryColorDto.fromColorValue(int colorValue) {
    return _DarkThemePrimaryColorDto._internal(
      colorValue: colorValue,
    );
  }

  factory _DarkThemePrimaryColorDto.fromEntity(DarkThemePrimaryColor primaryColor) {
    return _DarkThemePrimaryColorDto._internal(
      colorValue: primaryColor.colorValue,
    );
  }

  int toColorValue() {
    return colorValue;
  }

  DarkThemePrimaryColor toEntity() {
    return DarkThemePrimaryColor(colorValue);
  }
}
